package xzy.com.entity.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 
* @Title: Datum
* @Description:资源管理实体类
* @author: liyang
* @date 2020年12月10日 下午2:51:46
 */
@TableName("tb_datum")
public class Datum {
	@TableId(value="id",type = IdType.AUTO)
	private Long id;
	private String title;//标题
	private String filename;//文件名称
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;//创建时间
	@TableField(fill = FieldFill.UPDATE)
	private Date updateTime;//修改时间
	private String url;// 地址
	private Long number;// 下载量
	private String type;//类型
	private Long menuId;//菜单id
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getFilename() {
		return filename;
	}
	public void setFilename(String filename) {
		this.filename = filename;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Long getNumber() {
		return number;
	}
	public void setNumber(Long number) {
		this.number = number;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	
	public Long getMenuId() {
		return menuId;
	}
	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}
	@Override
	public String toString() {
		return "Datum [id=" + id + ", title=" + title + ", filename=" + filename + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + ", url=" + url + ", number=" + number + ", type=" + type + ", menuId="
				+ menuId + "]";
	}
	
	
}
